﻿<%@ Page Language="C#" MasterPageFile="~/ProductManager/ProductManage.Master" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="GoShopping.Web.SystemManager.SysManagerIndex" Title="无标题页" %>
<%@ Register assembly="ExtensionGridView" namespace="ExtensionControls" tagprefix="cc1" %>
<%@ Register assembly="GoShopping.Components" namespace="BaseText" tagprefix="cc2" %>
<%@ MasterType VirtualPath="~/ProductManager/ProductManage.Master" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table class="style1" cellpadding="0" cellspacing="0" border="0" style="width:800px">
    <tr>
        <td class="style3">
            <asp:Button ID="btnAddUser" runat="server" 
                Text="添加会员" Width="68px" Enabled="False" />
        </td>
        <td colspan="2" style="text-align: center; width: 120px;" class="style3">
            <asp:Label ID="Label1" runat="server" Text="默认操作区"></asp:Label>
        </td>
        <td style="text-align: center; width: 120px;">
            &nbsp;</td>
        <td colspan="3" style="text-align: center; width: 120px;">
            <asp:Label ID="Label2" runat="server" Text="导入导出"></asp:Label>
        </td>
        <td style="text-align: center; width: 260px;">
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="Label16" runat="server" Text="搜索"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:LinkButton ID="btnAdvancedSearch" runat="server">高级搜索</asp:LinkButton>
        </td>
    </tr>
    <tr>
        <td class="style3" align="left">
            <asp:Button ID="btnSendMail" runat="server" Text="发邮件" 
                onclick="btnSendMail_Click" />
        </td>
        <td colspan="2" align="center" class="style3" style="width: 120px">
            &nbsp;<asp:Button ID="btnLock" runat="server" onclick="btnLock_Click" Text="锁定" />
            &nbsp;&nbsp;
            <asp:Button ID="btnUnLock" runat="server" Text="解锁区" 
                onclick="btnUnLock_Click" />
        </td>
        <td align="center" class="style3" style="width: 120px">
            &nbsp;</td>
        <td align="center" class="style3" colspan="3" style="width: 120px">
            <asp:Button ID="btnInput" runat="server" Text="导入" />
            &nbsp;&nbsp;
            <asp:Button ID="btnOutput" runat="server" Text="导出" />
        </td>
        <td style="text-align: center; width: 260px;">
            用户名:<cc2:ZLTextBox ID="zltxtSearchCondition" runat="server" Width="80px"></cc2:ZLTextBox><asp:Button ID="btnSearch" runat="server" Text="搜索" onclick="btnSearch_Click" />
        </td>
    </tr>
    <tr>
        <td colspan="8">
           <%--<asp:ListView ID="ListView1" runat="server" GroupItemCount="1">
            <GroupTemplate>
                <tr>
                    <asp:PlaceHolder ID="itemPlaceholder" runat="server" />
                </tr>
            </GroupTemplate>
            <LayoutTemplate>
                <table style="width:774px">
                    <asp:PlaceHolder ID="groupPlaceholder" runat="server" />
                </table>
                <asp:DataPager ID="DataPager1" runat="server" PagedControlID="ListView1" 
                    PageSize="15">
                    <Fields>
                        <asp:NumericPagerField />
                    </Fields>
                </asp:DataPager>
            </LayoutTemplate>
            <ItemTemplate>
                <td>
                    <asp:Image ID="Image1" runat="server" />
                    <br />
                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("BriefIntroduction") %>'></asp:Label>
                    <br />
                    <asp:LinkButton ID="btnPrdtID" runat="server" 
                        CommandArgument='<%# Eval("ID") %>' CommandName="Prdt" 
                        Text='<%# Eval("Name") %>'>商品姓名</asp:LinkButton>
                    <br />
                </td>
            </ItemTemplate>
        </asp:ListView>--%>
        <cc1:ExtensionGridView ID="extGVUser" runat="server" 
                AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                RecordCount="-1" AllowPaging="True" 
                AllowSorting="True" AutoSort="True" EmptyDataText="没有商品记录!" 
                onrowcommand="extGVUser_RowCommand" Width="800px" 
                onpageindexchanging="extGVUser_PageIndexChanging" SortAscImageUrl="" 
                SortDescImageUrl="" PageSize="15" CssClass="GridViewStyle">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" runat="server" 
                                oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSingle" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
<%--                    <asp:TemplateField HeaderText="ID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>--%>
<%--                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEdit" runat="server" 
                                CommandArgument='<%# Eval("UserName") %>'>详细</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>--%>
                    <asp:TemplateField HeaderText="用户名">
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text='<%# Eval("UserName") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="邮箱">
                        <ItemTemplate>
                            <asp:Label ID="lbtnEmail" runat="server" Text='<%# Eval("Email") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="验证?">
                        <ItemTemplate>
                            <asp:Label ID="lblIntegration" runat="server" Text='<%# ChangeToChinese(Eval("IsApproved")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="锁定?">
                        <ItemTemplate>
                            <asp:Label ID="lblGiftMoney" runat="server" Text='<%# ChangeToChinese(Eval("IsLockedOut")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="在线?">
                        <ItemTemplate>
                            <asp:Label ID="lblSex" runat="server" Text='<%# ChangeToChinese(Eval("IsOnline")) %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="创建时间">
                        <ItemTemplate>
                            <asp:Label ID="lblVocation" runat="server" Text='<%# Eval("CreationDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="最后登录时间">
                        <ItemTemplate>
                            <asp:Label ID="lblBirthday" runat="server" Text='<%# Eval("LastLoginDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="上次锁定时间">
                        <ItemTemplate>
                            <asp:Label ID="lblZipCode" runat="server" Text='<%# Eval("LastLockoutDate") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center" />
            </cc1:ExtensionGridView>
            <%--<cc1:ExtensionGridView ID="extGVUser" runat="server" 
                AutoGenerateColumns="False" PagerText="当前第{0}页,共{1}页{2}条记录" 
                RecordCount="-1" AllowPaging="True" 
                AllowSorting="True" AutoSort="True" EmptyDataText="没有商品记录!" 
                onrowcommand="extGVUser_RowCommand" Width="800px" 
                onpageindexchanging="extGVUser_PageIndexChanging" SortAscImageUrl="" 
                SortDescImageUrl="" PageSize="15">
                <Columns>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="cbAll" runat="server" 
                                oncheckedchanged="cbAll_CheckedChanged" AutoPostBack="true" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="cbSingle" runat="server" />
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ID" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblID" runat="server" Text='<%# Eval("ID") %>'></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="操作">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnEdit" runat="server" 
                                CommandArgument='<%# Eval("id") %>'>详细</asp:LinkButton>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="姓名">
                        <ItemTemplate>
                            <asp:Label ID="lblName" runat="server" Text=<%# Eval("Name") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="积分">
                        <ItemTemplate>
                            <asp:Label ID="lblIntegration" runat="server" Text=<%# Eval("Integration") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="礼品卡金额">
                        <ItemTemplate>
                            <asp:Label ID="lblGiftMoney" runat="server" Text=<%# Eval("GiftMoney") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="性别">
                        <ItemTemplate>
                            <asp:Label ID="lblSex" runat="server" Text=<%# Eval("Sex") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="职业" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblVocation" runat="server" Text=<%# Eval("Vocation") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="生日">
                        <ItemTemplate>
                            <asp:Label ID="lblBirthday" runat="server" Text=<%# Eval("Birthday") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="联系电话">
                        <ItemTemplate>
                            <asp:Label ID="lblPhone" runat="server" Text=<%# Eval("Telephone") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="邮政编码" Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="lblZipCode" runat="server" Text=<%# Eval("ZipCode") %>></asp:Label>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Center" />
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle HorizontalAlign="Center" />
            </cc1:ExtensionGridView>--%>
        </td>
    </tr>
</table>
</ContentTemplate>
<Triggers>
 <asp:PostBackTrigger ControlID="btnSendMail" />
</Triggers>
</asp:UpdatePanel>
</asp:Content>
